package org.auf.controllers;

import org.auf.core.Controller;
import org.auf.model.dao.IEventDAO;
import org.auf.model.jdbc.EventDAOJDBC;
import org.auf.to.Event;

public class ShowMessageEventController extends Controller{

	@Override
	public void show() {
		String id = (String) request.getParameter("id");
		IEventDAO eventDAO = EventDAOJDBC.getInstance();
		
		Event actual = eventDAO.selectEvent(id);
		
		view.load("message");
		view.assignVar("message","Gracias, se ha registrado en el evento: "+ actual.getTitle());
		view.show();
	}

}
